package com.xhtt.modules.sys.service.impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhtt.common.utils.PageUtils;
import com.xhtt.common.utils.Query;
import com.xhtt.modules.sys.dao.SysUserAppLogMapper;
import com.xhtt.modules.sys.entity.SysUserAppLog;
import com.xhtt.modules.sys.model.UserAppLogModel;
import com.xhtt.modules.sys.service.SysUserAppLogService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * app登陆记录 服务实现类
 * </p>
 *
 * @author feipc
 * @since 2019-05-30
 */
@Service
public class SysUserAppLogServiceImpl extends ServiceImpl<SysUserAppLogMapper, SysUserAppLog> implements SysUserAppLogService {

    @Override
    public PageUtils logList(Map<String, Object> params) {
        Page<UserAppLogModel> page = new Query<UserAppLogModel>(params).getPage();
        page.setRecords(baseMapper.logList(page, params));
        return new PageUtils(page);
    }
}
